package cn.com.oceansoft.modules.base.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by huqp on 02/10/2016.
 */
public class ApiQueryBase {
    private int  ps=10;
    private int pi =1;
    private String sd;
    private String  sb    ;
    private String kw    ;
    private Map<String, Object> conditions = new HashMap<>();
    private String orderField;//排序字段
    private String orderDirection;//升降序
    private String keywords;//关键字
    // 条件参数格式:q_my_name_s_lk
    // my_name为数据库字段名，大小写按数据库来，有前缀的加前缀t.my_name
    // s代表字符串,n数字,d日期,dd长格式日期
    // lk代表like,lt 代表 >,eq 代表 =，....
    // 以and开头
    private String where;

    public Map<String, Object> getConditions() {
        return conditions;
    }

    public void setConditions(Map<String, Object> conditions) {
        this.conditions = conditions;
    }

    public String getOrderField() {
        return orderField;
    }

    public void setOrderField(String orderField) {
        this.orderField = orderField;
    }

    public String getOrderDirection() {
        return orderDirection;
    }

    public void setOrderDirection(String orderDirection) {
        this.orderDirection = orderDirection;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public int getPs() {
        return ps;
    }

    public void setPs(int ps) {
        this.ps = ps;
    }

    public int getPi() {
        return pi;
    }

    public void setPi(int pi) {
        this.pi = pi;
    }

    public String getSd() {
        return sd;
    }

    public void setSd(String sd) {
        this.sd = sd;
    }

    public String getSb() {
        return sb;
    }

    public void setSb(String sb) {
        this.sb = sb;
    }

    public String getKw() {
        return kw;
    }

    public void setKw(String kw) {
        this.kw = kw;
    }

    public String getWhere() {
        return where;
    }

    public void setWhere(String where) {
        this.where = where;
    }
}
